package com.zhanghe.study.design_pattern.template_method_pattern;

/**
 * 模板类
 * @author zh
 * @date 2022/10/16 16:29
 */
public abstract class AbstractTemplate {

    public abstract void doThings1();

    public abstract void doThings2();

    // 模板方法
    public final void templateMethod(){
        doThings1();
        doThings2();
    }
}
